home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / rdblib / global.bas < prev    next >
BASIC Source File  |  1995-05-09  |  4KB  |  116 lines

  1. ''''''''''''''''''''''''''''
  2. ' This is a copy of a protion of the Visual Basic GLOBAL.TXT
  3. ' This only includes global constants required by the routines
  4. ' You can exclude this file from from your project if you are including
  5. ' these global definitions elsewhere
  6. '
  7. '
  8. ''''''''''''''''''''''''''''
  9.  
  10. ' General
  11.  
  12. ' Clipboard formats
  13. Global Const CF_LINK = &HBF00
  14. Global Const CF_TEXT = 1
  15. Global Const CF_BITMAP = 2
  16. Global Const CF_METAFILE = 3
  17. Global Const CF_DIB = 8
  18. Global Const CF_PALETTE = 9
  19.  
  20. ' Show parameters
  21. Global Const MODAL = 1
  22. Global Const MODELESS = 0
  23.  
  24. ' Colors
  25. Global Const BLACK = &H0&
  26. Global Const RED = &HFF&
  27. Global Const GREEN = &HFF00&
  28. Global Const YELLOW = &HFFFF&
  29. Global Const BLUE = &HFF0000
  30. Global Const MAGENTA = &HFF00FF
  31. Global Const CYAN = &HFFFF00
  32. Global Const WHITE = &HFFFFFF
  33.  
  34. ' MousePointer
  35. Global Const DEFAULT = 0        ' 0 - Default
  36. Global Const ARROW = 1          ' 1 - Arrow
  37. Global Const CROSSHAIR = 2      ' 2 - Cross
  38. Global Const IBEAM = 3          ' 3 - I-Beam
  39. Global Const ICON_POINTER = 4   ' 4 - Icon
  40. Global Const SIZE_POINTER = 5   ' 5 - Size
  41. Global Const SIZE_NE_SW = 6     ' 6 - Size NE SW
  42. Global Const SIZE_N_S = 7       ' 7 - Size N S
  43. Global Const SIZE_NW_SE = 8     ' 8 - Size NW SE
  44. Global Const SIZE_W_E = 9       ' 9 - Size W E
  45. Global Const UP_ARROW = 10      ' 10 - Up Arrow
  46. Global Const HOURGLASS = 11     ' 11 - Hourglass
  47. Global Const NO_DROP = 12       ' 12 - No drop
  48.  
  49. ' WindowState
  50. Global Const NORMAL = 0    ' 0 - Normal
  51. Global Const MINIMIZED = 1 ' 1 - Minimized
  52. Global Const MAXIMIZED = 2 ' 2 - Maximized
  53.  
  54. ' Function Parameters
  55. ' MsgBox parameters
  56. Global Const MB_OK = 0                 ' OK button only
  57. Global Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  58. Global Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  59. Global Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  60. Global Const MB_YESNO = 4              ' Yes and No buttons
  61. Global Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  62.  
  63. Global Const MB_ICONSTOP = 16          ' Critical message
  64. Global Const MB_ICONQUESTION = 32      ' Warning query
  65. Global Const MB_ICONEXCLAMATION = 48   ' Warning message
  66. Global Const MB_ICONINFORMATION = 64   ' Information message
  67.  
  68. Global Const MB_APPLMODAL = 0          ' Application Modal Message Box
  69. Global Const MB_DEFBUTTON1 = 0         ' First button is default
  70. Global Const MB_DEFBUTTON2 = 256       ' Second button is default
  71. Global Const MB_DEFBUTTON3 = 512       ' Third button is default
  72. Global Const MB_SYSTEMMODAL = 4096      'System Modal
  73.  
  74. ' MsgBox return values
  75. Global Const IDOK = 1                  ' OK button pressed
  76. Global Const IDCANCEL = 2              ' Cancel button pressed
  77. Global Const IDABORT = 3               ' Abort button pressed
  78. Global Const IDRETRY = 4               ' Retry button pressed
  79. Global Const IDIGNORE = 5              ' Ignore button pressed
  80. Global Const IDYES = 6                 ' Yes button pressed
  81. Global Const IDNO = 7                  ' No button pressed
  82.  
  83.  
  84. 'Printer Dialog Flags
  85. Global Const PD_ALLPAGES = &H0&
  86. Global Const PD_SELECTION = &H1&
  87. Global Const PD_PAGENUMS = &H2&
  88. Global Const PD_NOSELECTION = &H4&
  89. Global Const PD_NOPAGENUMS = &H8&
  90. Global Const PD_COLLATE = &H10&
  91. Global Const PD_PRINTTOFILE = &H20&
  92. Global Const PD_PRINTSETUP = &H40&
  93. Global Const PD_NOWARNING = &H80&
  94. Global Const PD_RETURNDC = &H100&
  95. Global Const PD_RETURNIC = &H200&
  96. Global Const PD_RETURNDEFAULT = &H400&
  97. Global Const PD_SHOWHELP = &H800&
  98. Global Const PD_USEDEVMODECOPIES = &H40000
  99. Global Const PD_DISABLEPRINTTOFILE = &H80000
  100. Global Const PD_HIDEPRINTTOFILE = &H100000
  101.  
  102. 'Help Constants
  103. Global Const HELP_CONTEXT = &H1           'Display topic in ulTopic
  104. Global Const HELP_QUIT = &H2              'Terminate help
  105. Global Const HELP_INDEX = &H3             'Display index
  106. Global Const HELP_CONTENTS = &H3
  107. Global Const HELP_HELPONHELP = &H4        'Display help on using help
  108. Global Const HELP_SETINDEX = &H5          'Set the current Index for multi index help
  109. Global Const HELP_SETCONTENTS = &H5
  110. Global Const HELP_CONTEXTPOPUP = &H8
  111. Global Const HELP_FORCEFILE = &H9
  112. Global Const HELP_KEY = &H101             'Display topic for keyword in offabData
  113. Global Const HELP_COMMAND = &H102
  114. Global Const HELP_PARTIALKEY = &H105      'call the search engine in winhelp
  115.  
  116.